import sys
if len(sys.argv) > 1:
    work_path = sys.argv[1:]
    exlude = None
else:
    ignore_str = r'third_partys|[\\/]gl[\\/]|[\\/]\.|resource\.h|AssemblyInfo\.cpp|[\\/]template[\\/]'
    import re
    exlude = re.compile(ignore_str)
    import os
    cur_file_path = os.path.abspath(__file__)
    cur_path = os.path.dirname(cur_file_path)
    root_path = os.path.join(cur_path, '../../../')
    root_path = os.path.abspath(root_path)
    work_path = list()
    work_path.append(root_path)

from trans_file import trans_files
for path in work_path:
    print('start scan :' + path)
    trans_files(path, exlude)
